/*
 * @Author: wanglidong
 * @Date: 2022-02-27 15:26:44
 * @LastEditors: wanglidong
 * @LastEditTime: 2022-03-27 16:15:09
 * @Description: 开始你的表演
 * @FilePath: \lowcode-front\src\api\buss\video.js
 */
import request from '@/utils/request'

export function getAllVideo(data) {
  return request({
    url: 'buss/video/getTree',
    method: 'post',
    data
  })
}

export function getProject(projectId) {
  return request.get('buss/video/getProject?projectId='+projectId)
}
export function getLongitudeAndLatitude(typename) {
  return request.get('buss/mapdata/longitudeAndLatitude?type='+typename)
}

export function getOne(id) {
  return request.get('buss/video/getOne?id='+id)
}

export function getProjectA() {
  return request.post('buss/commonAPI/getProjectDatas')
}

export function save(data) {
  return request.post('buss/video/submit',data)
}
export function edit(data) {
  return request.post('buss/video/resubmit',data)
}
export function saveVideoId(param) {
  return request.post('buss/video/saveVideoId',param)
}
export function getVideoID(param) {
  return request.post('buss/video/getVideoID',param)
}
